<template>
  <div>
    <h2>单词列表展示</h2>
    <Tokens :tokens="tokens"></Tokens>
  </div>
</template>

<script type="text/javascript">
import code from '@/code/program';
import getTokens from '@/list-walker/tokens';
import getTokenList from '@/utils/getTokenList';

export default {
  data() {
    const tokenList = getTokenList(code);
    const tokens = getTokens(tokenList);

    return {
      tokens,
    };
  },
};
</script>

<style type="text/css">
</style>
